package org.point.common.util;

import java.util.Map;

/**
 * 
 * @author Sz-qiu
 * 
 *         用户分页的参数类
 */
public class PageEntity {

	/*
	 * 目前是第几页
	 */
	private Integer page;
	/*
	 * 每页大小
	 */
	private Integer size;
	
	/*
	 * 传入的参数
	 */
	private Map params;
	/*
	 * 排序字段
	 */
	private String orderColumn;
	/*
	 * 排序逻辑
	 */
	private String orderTurn = "ASC";

	public PageEntity() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PageEntity(Integer page, Integer size, Map params, String orderColumn, String orderTurn) {
		super();
		this.page = page;
		this.size = size;
		this.params = params;
		this.orderColumn = orderColumn;
		this.orderTurn = orderTurn;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Map getParams() {
		return params;
	}

	public void setParams(Map params) {
		this.params = params;
	}

	public String getOrderColumn() {
		return orderColumn;
	}

	public void setOrderColumn(String orderColumn) {
		this.orderColumn = orderColumn;
	}

	public String getOrderTurn() {
		return orderTurn;
	}

	public void setOrderTurn(String orderTurn) {
		this.orderTurn = orderTurn;
	}

	@Override
	public String toString() {
		return "PageEntity [page=" + page + ", size=" + size + ", params=" + params + ", orderColumn=" + orderColumn
				+ ", orderTurn=" + orderTurn + "]";
	}

}
